package com.changfen.config;

import feign.Contract;
import feign.Logger;
import feign.codec.Encoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


public class FeignConfiguration {
    @Bean
    Logger.Level feignLoggerLevel(){
        return Logger.Level.BASIC;
    }

    @Bean
    Contract feignContract(){
        return new Contract.Default();
    }

    @Bean
    Encoder feignSpringFormEncoder(){
        return new FeignSpringFormEncoder();
    }

}
